<?php
class StyleAction extends CommonAction {
	function index(){
		$this->listmap = "1";
		parent::_list();
		$this -> display();
	}
	
	
	public function edit(){
		$this -> template_modules_list = M('Template_modules') -> select();
		parent::edit();
	}
	
	public function update(){
		$_POST['filename'] = M('Template_modules') -> where(array('id' => $this->_post('template_modules_id'))) -> getField('filename');
		parent::update();
	}
	
}